//
//  DKHomeViewController.m
//  BTApp
//
//  Created by 丁侃 on 16/4/17.
//  Copyright © 2016年 丁侃. All rights reserved.
//

#import "DKHomeViewController.h"



@interface DKHomeViewController()<UIScrollViewDelegate>

@end

@implementation DKHomeViewController


-(void)viewDidLoad
{
    [super viewDidLoad];
    
    self.titleStyle = kTitleBtnStyleEqual;
    
    [self addChildViewControllers];
    
    
}

#pragma  mark -------------------------------
#pragma  mark -添加自控制器
//添加子控制器
-(void)addChildViewControllers
{
    UITableViewController *temp = [[UITableViewController alloc]init];
    [self addOneChildVc:temp withTitle:@"11111"];
    temp.view.backgroundColor = [UIColor redColor];
    
    UITableViewController *temp1 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp1 withTitle:@"2222"];
    temp1.view.backgroundColor = [UIColor blueColor];
    
    
    UITableViewController *temp2 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp2 withTitle:@"3333"];
    
    
    UITableViewController *temp3 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp3 withTitle:@"4444"];
    
    
    UITableViewController *temp4 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp4 withTitle:@"5555"];
    
    UITableViewController *temp5 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp5 withTitle:@"6666"];
    
    UITableViewController *temp6 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp6 withTitle:@"7777"];
    
    UITableViewController *temp8 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp8 withTitle:@"88888888888"];
    
    UITableViewController *temp9 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp9 withTitle:@"99"];
    
    UITableViewController *temp10 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp10 withTitle:@"100"];
    
    UITableViewController *temp11 = [[UITableViewController alloc]init];
    [self addOneChildVc:temp11 withTitle:@"8232"];
    
}

//添加一个自控制器
-(void)addOneChildVc:(UIViewController *) vc withTitle:(NSString *)title
{
    vc.title = title;
    [self addChildViewController:vc];
}



@end
